package com.ssm.mapper;

import com.ssm.lzh.vo.InterposeSchemeVo;
import com.ssm.hj.search.MemberSearch;
import com.ssm.hj.view.InterposeSchemeView;
import com.ssm.hj.view.MouldMap;
import com.ssm.pojo.Member;
import org.apache.ibatis.annotations.Param;
import com.ssm.pojo.Mould;
import com.ssm.pojo.TInterposeScheme;
import com.ssm.pojo.exercise;

import java.util.List;

public interface InterposeSchemeMapper {
    List<InterposeSchemeVo> queryt_interpose_scheme(@Param("id") int id,@Param("startDate") String  startDate,@Param("endDate") String  endDate);

    //阿杰 查询已分类会员信息
    List<Member> queryMemberGroupClassification(MemberSearch memberSearch) throws Exception;

    List<InterposeSchemeVo> querytt_interpose_followup_visit(@Param("id") int id,@Param("startDate") String  startDate,@Param("endDate") String  endDate);
    //阿杰 根据预约编号查询对应信息
    InterposeSchemeView queryBookIngById(int rid) throws Exception;
    //阿杰 查询所有模板
    List<Mould> queryMouldAll() throws Exception;
    //阿杰 根据编号查询模板 膳食
    MouldMap queryMouldFoodById(int id) throws Exception;
    //阿杰 根据编号查询模板 运动
    List<exercise> queryMouldExerciseById(int id) throws Exception;
    //阿杰 查询该会员是否已经干预
    int queryTInterposeSchemeById(int rid) throws Exception;
    //阿杰 新增干预方案
    int addTInterposeScheme(TInterposeScheme tInterposeScheme) throws Exception;
    //阿杰 修改干预方案信息
    int updateTInterposeScheme(TInterposeScheme tInterposeScheme) throws Exception;
    //阿杰 修改干扰已完成
    int updateTInterposeSchemeState(int rid) throws Exception;
    int updateBookingState(int rid) throws Exception;
}
